package coffeebar;


import java.text.DecimalFormat;


public class Pound {
  double value;

  public Pound(double value) {
    this.value = round(value);
  }

  public static double round(double x) {
        return  Math.round(x*100.0) / 100.0;
      }

  public String toString() {
    DecimalFormat df = new DecimalFormat("#,##,###,##0.00");
    return "£ " + df.format(value);
  }
}
